package com.shenyong.controller;

import com.shenyong.entity.Collection;
import com.shenyong.entity.Users_Concern;
import com.shenyong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/User")
public class UserConteroller {
    @Autowired
    UserService userService;
    @RequestMapping("/Allguanzhu")
    //查询用户是否关注
    public int Allguanzhu(Users_Concern users_Concern){
       return userService.Allguanzhu(users_Concern);
    }

    @RequestMapping("/upguanzhu")
    //修改用户是否关注
    public int upguanzhu(Users_Concern users_Concern){
      return  userService.upguanzhu(users_Concern);
    }




    @RequestMapping("/Allshoucang")
    //查询用户是否关注
    public int Allshoucang(Collection collection){
        return userService.Allshoucang(collection);
    }

    @RequestMapping("/upshoucang")
    //修改用户是否关注
    public int upshoucang(Collection collection){
        return  userService.upshoucang(collection);
    }
}
